# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# pyojo                                           Copyright (c) 2013 nabla.net
# ----------------------------------------------------------------------------
""" Javascript common functions.
"""

def new_window(url, 
               target="_blank", 
               options="toolbar=0,location=0,menubar=0"):
    return 'window.open("%s", "%s", "%s");' % (url, target, options)
